import lombok.Data;

import java.math.BigDecimal;

@Data
public class Books {
    private Integer id;
    private String title;
    private String date;
    private String author;
    private BigDecimal price;
    private int quantity;

    public Books(Integer id, String title, String date, String author, BigDecimal price, int quantity) {
        this.id = id;
        this.title = title;
        this.date = date;
        this.author = author;
        this.price = price;
        this.quantity = quantity;
    }

    public Books() {

    }

    @Override
    public String toString() {
        return "Books{" +
                "编号=" + id +
                ", 书名《" + title + "》" +'\'' +
                ", 出版日期=" + date +
                ", 作者='" + author + '\'' +
                ", 价格=" + price +
                ", 数量=" + quantity +
                '}';
    }
}
